﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class Precios1Fact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As Precios1BE
        Dim tmpPrecios1 As Precios1BE = New Precios1BE()
        Try
            With tmpPrecios1
                .Clave = convertDTFromDb.ConvertString(dr.Item("Clave"))
                .Clave1 = convertDTFromDb.ConvertString(dr.Item("Clave1"))
                .CodB = convertDTFromDb.ConvertString(dr.Item("CodB"))
                .Costo = convertDTFromDb.ConvertDecimal(dr.Item("Costo"))
                .Descripcion = convertDTFromDb.ConvertString(dr.Item("Descripcion"))
                .Precio = convertDTFromDb.ConvertDecimal(dr.Item("Precio"))
            End With
            Return tmpPrecios1
        Catch ex As Exception
            Throw
        Finally
            tmpPrecios1 = Nothing
        End Try
    End Function
End Class
